# Author：Huangwenyi

## 1. 输入一行字符，分别统计出其中英文字母、空格、数字和其它字符的个数。



def msg(s):
    abc_num = 0
    space_num = 0
    digit_num = 0
    other_num = 0
    for i in s:
        if i.isalpha():
            abc_num += 1
        elif i.isspace():
            space_num += 1
        elif i.isdigit():
            digit_num += 1
        else:
            other_num += 1
    return(abc_num, space_num, digit_num, other_num)
m = msg('My name is HUangwenyi & Tel = 13416554530.')
print(m)